# import  sys
# import test
# from PyQt5.QtWidgets import QApplication,QDialog
#
# if __name__ == '__main__':
#     myApp = QApplication(sys.argv)
#     myDig = QDialog()
#     myUI = test.Ui_Dialog()
#     myUI.setupUi(myDig)
#     myDig.show()
#     sys.exit(myApp.exec_())

# 一些记录
# 安装 qt5 https://mp.weixin.qq.com/s?__biz=MzU0MDQ1NjAzNg==&mid=2247526677&idx=3&sn=00e809bfb65e3d43c8c0fcb5e0bc720f&chksm=fb3acc1ecc4d4508c6fc3d23349da6525385f1011358f0e682057be1475569152b6db937defd&scene=27
# 安装出错，试着  python -m pip install
#

from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import *
import sys

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("")
        self.setGeometry(30,30,1500,900)
        self.browser = QWebEngineView()
        self.browser.load(QUrl('http://127.0.0.1:5502/leaflet-pipeline/index.html'))
        # self.browser.load(QUrl('https://www.baidu.com/'))
        self.setCentralWidget(self.browser)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    win = MainWindow()
    win.show()
    sys.exit(app.exec_())